var express = require('express')
const router = express.Router()
const path = require('path')
const fs = require('fs')


router.use(function(req, res, next){
    console.log('做当前路由下 权限拦截')
    next()
})
router.post('/getIndexBannerList', function(req, res){
    res.send({
        "code": 200,
        "msg": "ok",
        "data": [
            {bannerUrl: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3509712395,3494500590&fm=26&gp=0.jpg', jumpUrl: '/product/instruce-doctor', jumpType: 'INNER_LINK'},
            {bannerUrl: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2327890282,429190725&fm=26&gp=0.jpg', jumpUrl: '/product/instruce-health', jumpType: 'INNER_LINK'},
            {bannerUrl: 'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1558734614,2571467604&fm=26&gp=0.jpg', jumpUrl: '/product/list', jumpType: 'INNER_LINK'}
        ] 
    })
})

router.post('/queryProductPackageList', function(req, res){
    res.send({
        "code": 200,
        "msg": "ok",
        "data": [
            {packageCode: '1', packageType: 'MEI_M', packageTypeDesc: 'M系列', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '医佳套餐', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_M', packageTypeDesc: 'M系列', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '肺部疾病', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_M', packageTypeDesc: 'M系列', packageLevel: 'L1299',packagePrice: '1299', packageLevelDesc: '1299元', packageName: '胃肠疾病', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_M', packageTypeDesc: 'M系列', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '女性两癌', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_M', packageTypeDesc: 'M系列', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '男性肿瘤', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_M', packageTypeDesc: 'M系列', packageLevel: 'L899',packagePrice: '899', packageLevelDesc: '899元', packageName: '心脑血管疾病', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_X', packageTypeDesc: 'X系列', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '糖尿病', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_X', packageTypeDesc: 'X系列', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '高发肿瘤', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_X', packageTypeDesc: 'X系列', packageLevel: 'L899',packagePrice: '899', packageLevelDesc: '899元', packageName: '心脑血管疾病', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_X', packageTypeDesc: 'X系列', packageLevel: 'L1299',packagePrice: '1299', packageLevelDesc: '1299元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_X', packageTypeDesc: 'X系列', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_X', packageTypeDesc: 'X系列', packageLevel: 'L3499',packagePrice: '3499', packageLevelDesc: '3499元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_X', packageTypeDesc: 'X系列', packageLevel: 'L3499',packagePrice: '3499', packageLevelDesc: '3499元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_X', packageTypeDesc: 'X系列', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_X', packageTypeDesc: 'X系列', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_X', packageTypeDesc: 'X系列', packageLevel: 'L1299',packagePrice: '1299', packageLevelDesc: '1299元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_L', packageTypeDesc: 'MEI_L', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_L', packageTypeDesc: 'MEI_L', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_L', packageTypeDesc: 'MEI_L', packageLevel: 'L899',packagePrice: '899', packageLevelDesc: '899元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_L', packageTypeDesc: 'MEI_L', packageLevel: 'L899',packagePrice: '899', packageLevelDesc: '899元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_L', packageTypeDesc: 'MEI_L', packageLevel: 'L999',packagePrice: '999', packageLevelDesc: '999元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_L', packageTypeDesc: 'MEI_L', packageLevel: 'L999',packagePrice: '999', packageLevelDesc: '999元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_L', packageTypeDesc: 'MEI_L', packageLevel: 'L899',packagePrice: '899', packageLevelDesc: '899元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_L', packageTypeDesc: 'MEI_L', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '因你健康', packageSort: '1'},
            {packageCode: '1', packageType: 'MEI_L', packageTypeDesc: 'MEI_L', packageLevel: 'L699',packagePrice: '699', packageLevelDesc: '699元', packageName: '因你健康', packageSort: '1'},
        ] 
    })
})
router.post('/getProductPackage', function(req, res){
    res.send({
        "code": 200,
        "msg": "ok",
        "data": {
             packageCode: '1',
             packageType: 'MEI_M',
             packageTypeDesc: 'M系列',
             packageLevel: 'L699',
             packagePrice: '699',
             packageLevelDesc: '699元',
             packageName: '医佳套餐',
             packageSort: '1',
             packageContentJson: [{picUrl: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3509712395,3494500590&fm=26&gp=0.jpg', jumpUrl: '/product/instruce-doctor', jumpType: 'INNER_LINK'},
             {picUrl: 'https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2327890282,429190725&fm=26&gp=0.jpg', jumpUrl: '/product/instruce-health', jumpType: 'INNER_LINK'},
             {picUrl: 'https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1558734614,2571467604&fm=26&gp=0.jpg', jumpUrl: '/product/list', jumpType: 'INNER_LINK'}]
        }
    })
})




module.exports = router